package org.zfes.snowier.zbss.xzy.biz.solution.dao;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.zfes.snowier.common.dao.mybatis.BaseMapper;
import org.zfes.snowier.core.data.ParamMap;
import org.zfes.snowier.core.data.Record;
import org.apache.ibatis.annotations.Param;
import org.zfes.snowier.core.data.SelectVo;
import org.zfes.snowier.zbss.xzy.biz.solution.model.Algorithm;
@Mapper
public interface AlgorithmMapper extends BaseMapper<Algorithm>{
	
	Long selectListCount(ParamMap params);
	
	List<Record> selectMapListPage(ParamMap params);
	
	List<Algorithm> selectModelListPage(ParamMap params);
	
	
//	Algorithm selectByName(java.lang.String name);
	
	
	Long selectIdByName(java.lang.String name);
	
	int updateStatus(@Param("id")Long id, @Param("status")Byte status);
	
    List<SelectVo> selectDropList(@Param("status")Byte status);

	List<Algorithm> selectAllAlgorithm(@Param("name")String name,@Param("maxCount")Integer maxCount ,@Param("status")Byte status);

	Algorithm selectByCode(@Param("code")String code);

	List<Algorithm> selectByIds(@Param("ids") List<Long> ids);
    
}
